package com.wanlian.dao;


import com.wanlian.entity.StorageItem;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;

import java.util.List;

public interface StorageItemDao extends GenericDao<StorageItem> {

    long queryTotalByStorageIdAndType(int storageId, int type);

    /**
     * 通过storageId获取用户云盘子项
     *
     * @param storageId
     * @return
     */
    ResultModel queryByStorageId(int storageId, Page page);

    /**
     * 通过storageId和文件类型获取用户云盘子项
     *
     * @param storageId
     * @param fileType
     * @return
     */
    ResultModel queryByStorageIdAndFileType(int storageId, int fileType);

    void doDelete(StorageItem storageItem);


    List<StorageItem> queryUsersBySid(int storageId);

}
